/*
*Copyright 2021-2023 NERCIS
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
*distributed under the License is distributed on an "AS IS" BASIS,
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*See the License for the specific language governing permissions and
*limitations under the License.
*/

package cn.ac.nercis.pes.community.controller.evaluation.planning.layer;

import cn.ac.nercis.pes.community.utils.SpringUtils;
import cn.ac.nercis.pes.service.evaluation.EvaluationRangeService;
import cn.ac.nercis.pes.service.knowledge.KmEvaluationMethodService;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import lombok.extern.slf4j.Slf4j;

/**
 * 管理制度层面对象测评方式内容管理控制器
 *
 * @author zpy
 * @version 1.0.0
 */
@Slf4j
public class ManagementEvalMethodController extends BaseEvalMethodController {

    @FXML
    private Label unitTargetLbl;
    @FXML
    private HBox evalMethodBox;
    @FXML
    private TextArea descTxt;
    @FXML
    private VBox methodContentBox;

    private final EvaluationRangeService evaluationRangeService;
    private final KmEvaluationMethodService kmEvaluationMethodService;

    public ManagementEvalMethodController() {
        this.evaluationRangeService = SpringUtils.getBean(EvaluationRangeService.class);
        this.kmEvaluationMethodService = SpringUtils.getBean(KmEvaluationMethodService.class);
    }

    @Override
    public Label getUnitTargetLbl() {
        return unitTargetLbl;
    }

    @Override
    public HBox getEvalMethodBox() {
        return evalMethodBox;
    }

    @Override
    public TextArea getDescTxt() {
        return descTxt;
    }

    @Override
    public EvaluationRangeService getEvaluationRangeService() {
        return evaluationRangeService;
    }

    @Override
    protected KmEvaluationMethodService getKmEvaluationMethodService() {
        return this.kmEvaluationMethodService;
    }

    @Override
    protected VBox getMethodContentBox() {
        return this.methodContentBox;
    }
}